//
//  Keys.swift
//  swiftim
//
//  Created by yangjian on 2023/5/30.
//

import Foundation





//let emAppKey = "easemob-demo#support"
let apnsCertName = "all_yangjianproj"
let agoraAppid = "111"


//test
let emAppKey = "easemob-demo#support"
let TEST_DEF_USERNAME = "yy1"
let TEST_DEF_PASSWORD = "1"




//test
//let emAppKey = "1135230111167594#yiliaoyuan"
//let TEST_DEF_USERNAME = "299"
//let TEST_DEF_PASSWORD = "15036188352"


func calculateRPN(expression: String) -> Double {
    
    //分割字符串
    let strs = expression.components(separatedBy: " ").filter {$0.count > 0}
    
    //根据题意,将数组按照3个元素一组做处理
    var sections : [[String]] = []
    var items : [String] = []
    for i in 0 ..< strs.count {
        if i % 3 == 0{
            sections.append(items)
            items = []
        }
        items.append(strs[i])
    }
    sections.append(items)

    //以上做简单处理
    
    for subs in sections {
        let a = Double(subs[0])
        let b = Double(subs[1])

        
    }
    
    return 0
}
